#import System
import System.Collections.Generic
/*
class Klass:
   [Property(Name)]
   _name as string

   _klasses = KlassCollection()

   public override def ToString():
      return "Hi from ${_name}"

   public def AddKlass(k as Klass):
      _klasses.Add(k)

   public def GetValue(index as int):
      return _klasses[index]

   self[index as int] as Klass:
      get:
         return _klasses[index]
      

class KlassCollection:
   _rows = List of Klass()

   self[index as int] as Klass:
      get:
         return _rows[index] as Klass

   def Add(k as Klass):
      _rows.Add(k)

k = Klass(Name:"travis")
k.AddKlass(Klass(Name:"jerry"))
k1 = k[0]
print k1.GetType()
print k1.ToString()
*/

/*
class Test:
   public def func(ary as Array):
      return ary[0]
*/

class klass(IEnumerable of int):
   public def IEnumerable[of int].GetEnumerator() as IEnumerator of int:
      return List of int().GetEnumerator()

